package com.rainbow.seata.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@TableName("t_order")
@Accessors(chain = true)
@ApiModel(value="订单表", description="订单")
public class Order implements Serializable {
    private static final long serialVersionUID=1L;

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String orderNo;
    private String userId;
    private String commodityCode;
    private Integer count;
    private Float amount;
}
